﻿@model IEnumerable<Zosnn.Models.Order>

@{
    ViewBag.Title = "订单列表";
}

<p>
    @Html.ActionLink("新建", "Create")
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Created)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Status)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.UserID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SellerID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.OrderNum)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.OrderMoney)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SellerTime)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.UserTime)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.OrderInfo)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Address)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Tel)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Created)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Status)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UserID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SellerID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.OrderNum)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.OrderMoney)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SellerTime)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UserTime)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.OrderInfo)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Address)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Tel)
        </td>
        <td>
           @Html.ActionLink("编辑", "Edit", new { id=item.ID }) |
            @Html.ActionLink("详细", "Details", new { id=item.ID }) |
            @Html.ActionLink("删除", "Delete", new { id=item.ID })
        </td>
    </tr>
}

</table>
